<template>
    <div class="ListDataMV">
        <div class="item" v-for="(item,index) in dataList || []" :key="index" @click="$router.push('/video?rid=' + item.rid)">
            <div class="image">
                <van-image lazy-load :src="item.pic" width="100%" height="100%"/>
            </div>
            <div class="text">
                <div class="van-ellipsis">{{ item.name }}</div>
                <div class="van-ellipsis">{{ item.artist }}</div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name : 'ListDataMV',
    props : ['dataList'],
    data() {
        return {
            
        }
    },
    created(){
    },
    methods : {

    }
}
</script>

<style scoped>
.ListDataMV{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.item{
    position: relative;
    width: calc(50% - 10px);
    margin: 5px;
    display: flex;
}
.item .image{
    border-radius: 10px;
    overflow: hidden;
    height: 60px;
    width: 60px;
    margin-right: 10px;
}
.item .text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 70px);
}
.item .text div:nth-child(1){
    color: var(--songName);
}

.item .text div:nth-child(2){
    color: var(--artist);
}
</style>